package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.linlinjava.litemall.db.models.Collect;

public interface CollectService extends IService<Collect> {

    public int count(Long uid, byte type, Long gid) ;

    public IPage<Collect> queryByType(Long userId, Byte type, Integer page, Integer limit) ;

    public int countByType(Long userId, Byte type) ;

    public Collect queryByTypeAndValue(Long userId, Byte type, Integer valueId) ;

    public IPage<Collect> querySelective(Long userId, String valueId, Integer page, Integer size) ;
}
